Create a Window

You should always use a ISmartpointWindow or one of its derived types when creating windows. For more information about the architecture of Smartpoint windows, refer to Smartpoint windows.

  1. Call the UIHelper CreateNewSmartpointWindow method.
  2. Specify a Smartpoint ID, which must be a unique ID. This ID is used to persist the window's position and other attributes. Therefore, when the window is opened a second time, it will default to its last size and position.
    • Owner property is used to make this window “owned” by the current terminal window.

    • Closing event can be used to prevent the window from being closed.

Example

Open a Browser Window

The Browser Window sample:

  1. Opens a browser window with Google.com if there is no PNR in the PNR Viewer.
  2. If there is a PNR with AirSegment, it will open up the map with direction for the destination.
  3. Once the window is closed, it will show a popup that a Hotel passive segment is created. The PNR is also refreshed to show the latest added passive segment.

The Browser Window sample project has a button called BW that can be added to the CustomToolBar area and used to open the browser.

Download Browser Window sample project